<?php

/**
 * Subclass for performing query and update operations on the 'dia' table.
 *
 *
 *
 * @package lib.model
 */
class DiaPeer extends BaseDiaPeer
{
  static public function getActivosOrdenados(){
    $c = new Criteria();
    $c->add(self::ACTIVO,1);
    $c->addAscendingOrderByColumn(self::ORDEN);
    return self::doSelect($c);
  }
  static public function getOneByOrden($codigo){
    $c = new Criteria();
    $c->adD(self::ORDEN,$codigo);
    return self::doSelectOne($c);
  }
}
